﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="myHouse.aspx.cs" Inherits="Fitment.User.myHouse" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="InputContentPlaceHolder" runat="server">
    <div align="center">
     <h2 align="left">
            当前位置：
            <asp:SiteMapPath ID="SiteMapPath1" runat="server">
            </asp:SiteMapPath>
        </h2>
        <br />
        <br />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="gv_myhouse" runat="server" AutoGenerateColumns="False" BackColor="White"
                    BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                    CellPadding="3" ForeColor="Black"
                    GridLines="Vertical"  AllowPaging="True" DataKeyNames="House_ID" 
                    onpageindexchanging="gv_myhouse_PageIndexChanging" 
                    onselectedindexchanging="gv_myhouse_SelectedIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="House_ID" HeaderText="房子编号" />
                        <asp:BoundField DataField="RoomCount" HeaderText="房间数" />
                        <asp:BoundField DataField="DoorCount" HeaderText="门数" />
                        <asp:BoundField DataField="WindCount" HeaderText="窗数" />
                        <asp:CommandField HeaderText="选择" ShowSelectButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#CCCCCC" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="#CCCCCC" />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        <br />
        <asp:Button ID="newHouse" runat="server" Text="装修新房子" OnClick="newHouse_Click" />
        &nbsp;&nbsp;
        <asp:Button ID="editHouse" runat="server" Text="装修选中房子" OnClick="editHouse_Click" />
        &nbsp;&nbsp;<asp:Button ID="delete" runat="server" Text="删除选中房子" 
            onclick="delete_Click" />
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RemindContentPlaceHolder" runat="server">
</asp:Content>
